package pub.guoxin.oops.common.protocol.builder;

import lombok.Getter;
import pub.guoxin.oops.common.protocol.entity.map.DataProtocolMap;

/**
 * 实现这个接口表示，实现类是一个命令索引表
 *
 * Created by guoxin on 18-2-25.
 */
@Getter
public class DataProtocolCommandRegister implements DataProtocolRegister<String, DataProtocolCommandRegister> {

    private DataProtocolMap<String> register = DataProtocolMap.newDataProtocolMap();

    @Override
    public DataProtocolCommandRegister register(Integer name, String value){
        register.register(name, value);
        return this;
    }

}
